package com.ruoyi.creditlife.service.impl;

import com.ruoyi.creditlife.domain.Parking;
import com.ruoyi.creditlife.mapper.ParkingMapper;
import com.ruoyi.creditlife.service.IParkingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * parkingService业务层处理
 * 
 * @author ddd
 * @date 2025-06-30
 */
@Service
public class ParkingServiceImpl implements IParkingService 
{
    @Autowired
    private ParkingMapper parkingMapper;

    /**
     * 查询parking
     * 
     * @param id parking主键
     * @return parking
     */
    @Override
    public Parking selectParkingById(Long id)
    {
        return parkingMapper.selectParkingById(id);
    }

    /**
     * 查询parking列表
     * 
     * @param parking parking
     * @return parking
     */
    @Override
    public List<Parking> selectParkingList(Parking parking)
    {
        return parkingMapper.selectParkingList(parking);
    }

    /**
     * 新增parking
     * 
     * @param parking parking
     * @return 结果
     */
    @Override
    public int insertParking(Parking parking)
    {
        return parkingMapper.insertParking(parking);
    }

    /**
     * 修改parking
     * 
     * @param parking parking
     * @return 结果
     */
    @Override
    public int updateParking(Parking parking)
    {
        return parkingMapper.updateParking(parking);
    }

    /**
     * 批量删除parking
     * 
     * @param ids 需要删除的parking主键
     * @return 结果
     */
    @Override
    public int deleteParkingByIds(Long[] ids)
    {
        return parkingMapper.deleteParkingByIds(ids);
    }

    /**
     * 删除parking信息
     * 
     * @param id parking主键
     * @return 结果
     */
    @Override
    public int deleteParkingById(Long id)
    {
        return parkingMapper.deleteParkingById(id);
    }
}
